package org.wiztools.te.plugin;

import org.wiztools.te.TEMod;
import org.wiztools.te.TEProcessAdapter;
import org.wiztools.te.TEFrame;
import org.wiztools.te.exception.TEFatalException;

import javax.swing.JOptionPane;

public class TENewInstance extends TEProcessAdapter{
	private TEMod tem;
	
	public void setTEMod(TEMod tem){
		this.tem = tem;
	}
	
	public void action(){
		try{
			new TEFrame(null);
		}
		catch(TEFatalException tefe){
			JOptionPane.showMessageDialog(tem.getJD(), "An Exception Occurred!", "An Exception Occurred!", JOptionPane.ERROR_MESSAGE);
		}
	}
}
